﻿using System;
using COFE.Core;

namespace COFE.Data.DBLink
{
    public class DBLinkPropertyProvider : DBPropertyProviderBase
    {
        #region Constructor


        private void init()
        {
            _propertySupportDic.Add(InternalProperties.EmbeddedEntry, PropertySupportOptions.CanRead);

            _getProperty = (p) =>
            {
                if ((int)p == (int)InternalProperties.EmbeddedEntry)
                    return _dbEntry;                    
                return null;
            };
        }

        public DBLinkPropertyProvider(Entry dbEntry)
            : base(dbEntry)
        {
            init();
        }

        /// <summary>
        /// Assumed the dbEntry already exists.
        /// </summary>
        /// <param name="entryGuid"></param>
        public DBLinkPropertyProvider(Guid entryGuid)
            : base(entryGuid)
        {
            init();
        }



        #endregion

        #region Data


        #endregion

        #region Public Methods





        #endregion

        #region private methods




        #endregion


        #region Static Method



        #endregion

        #region Public Properties


        #endregion
    }
}
